package com.shyroke.daydayzhuanapi.entity;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@Entity
@Table(name = "label")
public class LabelEntity extends BaseEntity implements Serializable {
    private String labelName;

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "type_id",referencedColumnName = "id")
    private TypeEntity type;

    private Integer isShowTitle;
    @Column(name = "`keys`")
    private String keys;
    private Integer readCount;
    private Boolean isTop = false;

    @Transient
    private Integer count;
    @Transient
    private boolean isSelected = false;


}